{% extends 'base.html' %}
{% load staticfiles %}
{% block left_content %}

    {% include 'ad.html' %}

    <div class="topnews">
    {% if flag == 'article' %}
      <h2>{{ year }}/{{ month }}文章归档</h2>
    {% else %}
      <h2>标签：{% for tag in Tag_name %}{{ tag.name }}{% endfor %}</h2>
    {% endif %}
        {% for article in article_list %}
      <div class="blogs">
        <ul>
          <h3><a href="/">{{ article.title }}</a></h3>
          <p>{{ article.desc }}</p>
          <p class="autor">
              <span class="lm f_l">{% for tag in article.tag.all %}<a href="/">{{ tag.name }}</a>&nbsp;</span>{% endfor %}
              <span class="dtime f_l">{{ article.date_publish | date:"Y-m-d" }}</span>
              <span class="viewnum f_r">浏览（<a href="/">{{ article.click_count }}</a>）</span>
              <span class="pingl f_r">评论（<a href="/">{{ article.comment_set.all.count }}</a>）</span>
          </p>
        </ul>
      </div>
        {% endfor %}
    </div>

    {% include 'pagination.html' %}
{% endblock %}
